import request from "@/api/request";

//宿舍列表
export function dormList(data) {
  return request({
    url: "/admin/xy/dorm/list",
    method: "get",
    data
  });
}

// 新增宿舍
export function dormSave(data) {
  return request({
    url: "/admin/xy/dorm/save",
    method: "post",
    data
  });
}

// 更新宿舍
export function dormUpdate(data) {
  return request({
    url: "/admin/xy/dorm/update",
    method: "post",
    data
  });
}

//宿舍明细
export function dormDetail(data) {
  return request({
    url: "/admin/xy/dorm/detail",
    method: "get",
    data
  });
}
//删除宿舍
export function dormDel(data) {
  return request({
    url: "/admin/xy/dorm/del",
    method: "get",
    data
  });
}
